﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="PreviewPersonalProject.aspx.cs"
    Inherits="LabMS.Web.PersonalProjectManagement.PreviewPersonalProject" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>实验室开放申请表</title>
    <link type="text/css" rel="stylesheet" href="../style/screen.css" />
    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="../style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="../style/ie7.css" />
    <![endif]-->

    <script type="text/javascript" src="../../js/Common.js"></script>

    <script type="text/javascript">
    function foo()
    {
        url = "EditPersonalProject.aspx?ProjectID=<%=ProjectID %>"; 
        RedirectURL(window,url) 
    }  
    </script>

</head>
<body class="mainBody">
    <form id="form1" runat="server">
        <div class="main">
            <div id="pageInfo" class="clearfix">
                <div class="title">
                    <label>
                        <a href="ListPersonalProject.aspx">学生自拟开放实验申请列表</a></label>&gt;查看学生自拟开放实验申请
                </div>
            </div>
        </div>
        <div class="main">
            <p>
                <input id="ApplyBtn" runat="server" type="button" class="button" onclick="foo()"
                    value="审核" />
                <asp:Button ID="btnDel" CssClass="button" runat="server" Text="删除" OnClick="Button2_Click" />
                <input id="btnReturn" class="button" type="button" onclick="javascript:window.location.href='ListPersonalProject.aspx';"
                    value="返回" />
            </p>
            <table cellpadding="2" cellspacing="0" border="0">
                <tr>
                    <td>
                        <label class="itemTitle">
                            项目名称：</label><span style="color: Red">*</span>
                    </td>
                    <td>
                        <asp:Label ID="ProjectName" runat="server"></asp:Label>
                    </td>
                    <td>
                        <label class="itemTitle">
                            计划学时：</label><span style="color: Red">*</span>
                    </td>
                    <td>
                        <asp:Label ID="PlanHours" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            申请实验室：</label><span style="color: Red">*</span>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlApplyLab" Enabled="false" DataTextField="Lab_Name" DataValueField="ID"
                            runat="server">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <label class="itemTitle">
                            申请时间：</label><span style="color: Red">*</span>
                    </td>
                    <td>
                        <asp:Label ID="ApplyTimeMin" runat="server"></asp:Label>--<asp:Label ID="ApplyTimeMax"
                            runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            学期：</label>
                    </td>
                    <td>
                        <asp:Label ID="lbSTime" runat="server"></asp:Label>
                    </td>
                    <td>
                        <label class="itemTitle">
                            状态：</label>
                    </td>
                    <td>
                        <asp:Label ID="lbStatus" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <label class="itemTitle">
                            申请人：</label>
                    </td>
                    <td>
                        <asp:GridView ID="gvApplicant" runat="server" AutoGenerateColumns="false" CssClass="infoTable">
                            <Columns>
                                <asp:BoundField HeaderText="学号" DataField="Student_Code" />
                                <asp:BoundField HeaderText="姓名 " DataField="Student_Name" />
                                <asp:BoundField HeaderText="班级" DataField="Class_Name" />
                                <asp:BoundField HeaderText="专业" DataField="Pro_Name" />
                            </Columns>
                            <HeaderStyle CssClass="header" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            联系人：</label><span style="color: Red">*</span>
                    </td>
                    <td>
                        <asp:Label ID="Contactor" runat="server"></asp:Label>
                    </td>
                    <td>
                        <label class="itemTitle">
                            班级：</label>
                    </td>
                    <td>
                        <asp:Label ID="ContactorClass" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            联系电话：</label><span style="color: Red">*</span>
                    </td>
                    <td>
                        <asp:Label ID="ContactPhone" runat="server"></asp:Label>
                    </td>
                    <td>
                        <label class="itemTitle">
                            E-Mail：</label>
                    </td>
                    <td>
                        <asp:Label ID="ContactEmail" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            指导老师：</label>
                    </td>
                    <td>
                        <asp:Label ID="Teacher" runat="server"></asp:Label>
                    </td>
                    <td>
                        <label class="itemTitle">
                            职称：</label>
                    </td>
                    <td>
                        <asp:Label ID="TeacherTitle" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            联系电话：</label>
                    </td>
                    <td>
                        <asp:Label ID="TeacherPhone" runat="server"></asp:Label>
                    </td>
                    <td>
                        <label class="itemTitle">
                            E-Mail：</label>
                    </td>
                    <td>
                        <asp:Label ID="TeacherEmail" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <label class="itemTitle">
                            所需仪器：</label>
                    </td>
                    <td>
                        <asp:GridView ID="gvEquip" runat="server" AutoGenerateColumns="false" CssClass="infoTable">
                            <Columns>
                                <asp:BoundField HeaderText="名称" DataField="EquipName" />
                                <asp:BoundField HeaderText="数量 " DataField="EquipNum" />
                                <asp:BoundField HeaderText="备注" DataField="Introduction" />
                            </Columns>
                            <HeaderStyle CssClass="header" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <label class="itemTitle">
                            所需低耗品：</label>
                    </td>
                    <td>
                        <asp:GridView ID="gvLowConsumption" runat="server" AutoGenerateColumns="false" CssClass="infoTable">
                            <Columns>
                                <asp:BoundField HeaderText="名称" DataField="EquipName" />
                                <asp:BoundField HeaderText="数量 " DataField="EquipNum" />
                                <asp:BoundField HeaderText="备注" DataField="Introduction" />
                            </Columns>
                            <HeaderStyle CssClass="header" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <label class="itemTitle">
                            申请理由：</label>
                    </td>
                    <td>
                        <asp:Label ID="ApplyReason" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
            <table border="0" runat="server" visible="false" id="ApplyOpinion" cellspacing="0"
                cellpadding="2">
                <tr>
                    <td valign="top">
                        <label class="itemTitle">
                            审批意见：</label>
                    </td>
                    <td>
                        <asp:Label ID="Opinion" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
            <asp:Panel ID="ApprovalProjectPreview" runat="server">
                <table>
                    <tr>
                        <td>
                            <label class="itemTitle">
                                实验时间：</label>
                        </td>
                        <td>
                            <asp:Label ID="LabDate" runat="server"></asp:Label>
                            <asp:Label ID="LabStartTimeHour" runat="server"></asp:Label>:<asp:Label ID="LabStartTimeMinute"
                                runat="server"></asp:Label>--
                            <asp:Label ID="LabEndTimeHour" runat="server"></asp:Label>:<asp:Label ID="LabEndTimeMinute"
                                runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <label class="itemTitle">
                                实验地点：</label>
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlLocation" Enabled="false" DataTextField="Location_Name"
                                DataValueField="ID" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </div>
        <asp:Label ID="lbErr" runat="server" ForeColor="Red" Text="Err" Visible="False"></asp:Label>
    </form>
</body>
</html>
